cmake_minimum_required(VERSION 2.8)

project(picandy)

find_package(PkgConfig)
#添加gtkmm依赖
pkg_check_modules(GTKMM REQUIRED gtkmm-3.0)
include_directories(${GTKMM_INCLUDE_DIRS})
link_libraries(${GTKMM_LIBRARIES})

#编译资源文件
add_custom_command(OUTPUT pic_resources.c
    COMMAND glib-compile-resources --generate-source --target=${CMAKE_BINARY_DIR}/pic_resources.c  gndresources.gresource.xml
    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/resource)

include_directories(header)

set(SRC src/main.cpp
    src/PicApp.cpp
    pic_resources.c)


add_executable(${PROJECT_NAME} ${SRC})
